package com.changpay.zywy.mvp.model


import com.changpay.zywy.base.BaseModel
import com.changpay.zywy.http.RetrofitHelper
import com.changpay.zywy.bean.*
import com.changpay.zywy.mvp.contract.ShopContract
import io.reactivex.Observable

/**
 * Created by chenxz on 2018/5/27.
 */
class ShopModel : BaseModel(), ShopContract.Model {
    override fun getShop(token: String): Observable<HttpResult<List<ShopGoodsBean>>> {
        return RetrofitHelper.service.goodsList(token)
    }

    override fun getBanner(): Observable<HttpResult<List<ShopBanner>>> {
        return RetrofitHelper.service.goodsIndex()
    }
}